package com.siblings.loan.utils.event;

import org.json.JSONObject;

/**
 * Siblings
 *
 * @Author wwdeng
 * @CreateTime: 2024/7/4 15:26
 * @Annotation：通过EventBus传递的实体类
 */
public class SibEventData {

    public enum TYPE {
        /**
         * 刷新主流程
         */
        SIB_PROCESS_REFRESH,
        /**
         * 主流程刷新完成
         */
        SIB_PROCESS_REFRESHED,
        /**
         * 使用照片
         */
        SIB_USE_PHOTO
    }

    private TYPE eventType;
    private JSONObject eventData;

    public SibEventData(TYPE type){
        this.eventType = type;
    }

    public SibEventData(TYPE type, JSONObject data){
        this.eventType = type;
        this.eventData = data;
    }

    public TYPE getEventType() {
        return eventType;
    }

    public void setEventType(TYPE eventType) {
        this.eventType = eventType;
    }

    public JSONObject getEventData() {
        return eventData;
    }

    public void setEventData(JSONObject eventData) {
        this.eventData = eventData;
    }
}
